<?php
	class User extends AppModel{
		var $name = 'User';
		
		var $validate = array(
			'username'=>array(
				'rule'=>'notEmpty',
				'required'=>true,
				'message'=>'username shuold not be null'
			),
			'password'=>array(
				'rule'=>array('minLength','6'),
				'message'=>'Minmun 6 characters long'
			),
			'email'=>array(
				'email' =>array(
					'rule'=>'email',
					'requried'=>true,
					'message'=>'Please input a correct email'),
				'isUnique'=>array(
					'rule'=>'isUnique',
					'message'=>'The email has registered' )
			),
			'url'=>array(
				'url' =>array(
					'rule'=>'url',
					'ruqired'=>true,
					'message'=>'Please input a correct url'),
				'isUnique'=>array(
					'rule'=>'isUnique',	
					'message'=>'The url has exsit'	),
			)
		);
	}
?>